import axios from '@/libs/api.request'

/* 补贴列表 */
export const subsidylist = () => {
  return axios.request({
    url: '/api/us/ctc/ctcsubsidy/list',
    type: 'get'
  })
}
/* 补贴详情 */
export const subsidyinfo = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcSubsidyService/Info',
    data: data,
    type: 'post'
  })
}
/* 殡仪馆基础信息 */
export const ctcfuneralhome = (data, type) => {
  let url = '/api/us/ctc/ctcfuneralhome/list'
  if (type === 'get') {
    url = url + ''
  }
  if (type === 'post') {
    url = url + '/' + data
  }
  return axios.request({
    url: url,
    type: type,
    data: data
  })
}
/* 学区信息 */
export const ctcschooldistrict = (data, type) => {
  let url = '/api/us/ctc/ctcschooldistrict/list'
  if (type === 'get') {
    url = url + ''
  }
  if (type === 'post') {
    url = url + '/' + data
  }
  return axios.request({
    url: url,
    type: type,
    data: data
  })
}
/* 中国沈阳政务媒体 */
export const ctcgovernmentmedia = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcgovernmentmedia/list',
    type: 'get',
    data: data
  })
}
/* 社区办理事项查询 */
export const auditItemService = (data) => {
  return axios.request({
    url: '/api/uc/csc/auditItemService/todolist',
    type: 'get',
    data: data
  })
}
// 社区列表
export const ctccommunity = (data, type) => {
  let url = '/api/us/ctc/ctccommunity/list'
  if (type === 'get') {
    url = url + ''
  }
  if (type === 'post') {
    url = url + '/' + data
  }
  return axios.request({
    url: url,
    type: type,
    data: data
  })
}
// 信用榜单列表
export const ctccreditlist = (data, type) => {
  let url = '/api/us/ctc/ctccreditlist/wxlist'
  if (type === 'get') {
    url = url + ''
  }
  if (type === 'post') {
    url = url + '/' + data
  }
  return axios.request({
    url: url,
    type: type,
    data: data
  })
}
// 公交地铁查询=》城市下拉列表
export const transitcity = (data) => {
  return axios.request({
    url: '/api/uc/ctc/transitQueryService/city',
    type: 'get',
    data: data
  })
}
// 中国沈阳常用查询
export const ctcofenquery = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcofenquery/list',
    type: 'get',
    data: data
  })
}
// 养老机构查询
export const ctcpensioninstitutions = (data, type) => {
  let url = '/api/us/ctc/ctcpensioninstitutions/list'
  if (type === 'get') {
    url = url + ''
  }
  if (type === 'post') {
    url = url + '/' + data
  }
  return axios.request({
    url: url,
    type: 'post',
    data: data
  })
}
// 公交详细信息查询
export const transitline = (data) => {
  return axios.request({
    url: '/api/uc/ctc/transitQueryService/line',
    type: 'get',
    data: data
  })
}
// 养老机构详情
export const info = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcpensioninstitutions/info',
    type: 'post',
    data: data
  })
}
